import type { RootEntity } from '../model/RootEntity'
import type { AbstractCurdService } from './AbstractCurdService'

/**
 * ### 服务构造器类型
 */
export type CurdServiceConstructor<
  E extends RootEntity,
  S extends AbstractCurdService<E>,
> = new () => S & {
  /**
   * ### 实体类
   */
  entityClass: (new () => E)
}
